package com.crm.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description  
 * @Author  XXX 
 * @Date 2023-03-10 
 */

@Data
@TableName ("crm_order" )
public class CrmOrder  implements Serializable {
	private static final long serialVersionUID =  5659996290438333006L;

	/**
	 * 订单ID
	 */
   	@TableField("order_id" )
	@TableId(value = "orderId",type = IdType.AUTO)
	private Integer orderId;

	/**
	 * 订单编号
	 */
   	@TableField("order_no" )
	private Integer orderNo;

	/**
	 * 订单总金额
	 */
   	@TableField("received" )
	private BigDecimal received;

	/**
	 * 下单日期
	 */
   	@TableField("order_date" )
	private Date orderDate;

	/**
	 * 交单日期
	 */
   	@TableField("presentation_date" )
	private Date presentationDate;

	/**
	 * 订单备注
	 */
   	@TableField("order_remarks" )
	private String orderRemarks;

	/**
	 * 录入时间
	 */
   	@TableField("entry_time" )
	private Date entryTime;

	/**
	 * 发货状态id
	 */
   	@TableField("shipment_status_id" )
	private Integer shipmentStatusId;

	/**
	 * 订单状态id
	 */
   	@TableField("order_status_id" )
	private Integer orderStatusId;

	/**
	 * 客户id
	 */
   	@TableField("customer_id" )
	private Integer customerId;

	/**
	 * 员工id
	 */
   	@TableField("employee_id" )
	private Integer employeeId;

	/**
	 * 1为未被删除，0为已删除，假删除状态
	 */
	@TableLogic(value = "1",delval = "0")
   	@TableField("delete_state" )
	private Integer deleteState;

}
